package org.opu.translator.gui;

/**
 *
 * @author yura
 */
public class Value {

    private String data;
    private int startPosition;
    private int endPosition;

    public Value(String data, int startPosition, int endPosition) {
        this.data = data;
        this.startPosition = startPosition;
        this.endPosition = endPosition;
    }

    /**
     * Get the value of endPosition
     *
     * @return the value of endPosition
     */
    public int getEndPosition() {
        return endPosition;
    }

    /**
     * Set the value of endPosition
     *
     * @param endPosition new value of endPosition
     */
    public void setEndPosition(int endPosition) {
        this.endPosition = endPosition;
    }


    /**
     * Get the value of startPosition
     *
     * @return the value of startPosition
     */
    public int getStartPosition() {
        return startPosition;
    }

    /**
     * Set the value of startPosition
     *
     * @param startPosition new value of startPosition
     */
    public void setStartPosition(int startPosition) {
        this.startPosition = startPosition;
    }


    /**
     * Get the value of data
     *
     * @return the value of data
     */
    public String getData() {
        return data;
    }

    /**
     * Set the value of data
     *
     * @param data new value of data
     */
    public void setData(String data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return String.valueOf(data);
    }
}
